package com.bsoft.gol.hbs.bbpmessagel.template;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class WxMpGsonBuilder {

	public static final GsonBuilder INSTANCE = new GsonBuilder();

	static {
		INSTANCE.disableHtmlEscaping();
		INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter());
		INSTANCE.registerTypeAdapter(WxMiniSubscribeMessage.class, new WxMiniSubscribeMessageGsonAdapter());
	}

	public WxMpGsonBuilder() {
	}

	public static Gson create() {
		return INSTANCE.create();
	}
}
